<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><s:property value='%{getText("role_edit_title")}' /></title>
	<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
	<%@ include file="../commonPage/message.jsp" %>
</head>
<body>
<div class="main">
<s:form action="roleAction!editRole.action" theme="simple" onsubmit="return false;">
   <!-- 主体开始 -->
   <table border="1" cellpadding="1" cellspacing="1" class="tableModify">
	  <tr>
	    <th><s:property value='%{getText("role_th2")}' /></th>
	    <td><s:textfield name="entity.name" cssClass="sInput" title="角色名" /> <span style="color:red">*</span><input type="hidden" value="must-input"/></td>
	    <s:hidden name="entity.id"></s:hidden>
	  </tr>
	  <tr>
	    <th><s:property value='%{getText("role_new_jiaose")}' /></th>
	    <td class="rightTd">
	      <div class="right">								
			<s:iterator value="entity.liseMenuEntityBean" id="checkBox">
			  <h4>
				<s:if test="checkBox.checked == 1">
					<input type="checkbox" checked="true"
						name="checkbox_<s:property value="checkBox.key"/>"
						value="<s:property value="checkBox.key"/>"
						onclick="rightCheck2(this,this.checked)" title="全选/取消" />
				</s:if>
				<s:if test="checkBox.checked == 0">
					<input type="checkbox"
						name="checkbox_<s:property value="checkBox.key"/>"
						value="<s:property value="checkBox.key"/>"
						onclick="rightCheck2(this,this.checked)" title="全选/取消" />
				</s:if>
				<s:property value="checkBox.name" />
			</h4>
			<ul>
				<s:iterator value="checkBoxList">
					<li>
						<s:if test="checked == 1">
							<input type="checkbox" checked="true"
								name="checkbox_<s:property value="checkBox.key"/>"
								value="<s:property value="key"/>"
								onclick="rightCheck1(this,this.checked)" />
						</s:if>
						<s:if test="checked == 0">
							<input type="checkbox"
								name="checkbox_<s:property value="checkBox.key"/>"
								value="<s:property value="key"/>"
								onclick="rightCheck1(this,this.checked)" />
						</s:if>
						<s:property value="name" />
					</li>
				</s:iterator>
			  </ul>
			</s:iterator>
		  </div>
		</td>
	  </tr>
	  <tr>
	    <th><s:property value='%{getText("emp_new_bm")}' /> </th>
      	  <td class="rightTd"><div class="right">
		    <h4>
			  <input type="checkbox" name="" value="checkbox" onclick="Super.checkAll(this.checked,'entity.department')" title="全选/取消"/>全部</h4>
			<ul>
			<s:iterator value="entity.departmentList">
			  <s:if test="checked == 1">
			    <li><input type="checkbox" name="entity.department" checked="true" value="<s:property value="key"/>" /><s:property value="name"/></li>
			  </s:if>
			  <s:if test="checked == 0">
			    <li><input type="checkbox" name="entity.department" value="<s:property value="key" />" /><s:property value="name" /></li>
			  </s:if>
			</s:iterator>
		  </ul>
		  </div>
        </td>
	  </tr>
	  <tr>
	    <th><s:property value='%{getText("role_new_caozuo")}' /></th>
	    <td><div class="right"><s:radio list="#{'全部':'全部','添加':'添加','删除':'删除','修改':'修改','查询':'查询'}" name="entity.operation" value="entity.operation"/></div></td>
	  </tr>	
	</table>
	<s:hidden name="entity.checkRight" id="insertRole_checkRight" cssStyle="width:500px;"/>
  <!-- 主体结束 -->
  </s:form>
</div>
</body>
</html>

